package cn.tx.service.Impl;

import cn.tx.dao.EmpDao;
import cn.tx.model.Emp;
import cn.tx.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class EmpServiceImpl implements EmpService{

    @Autowired
    EmpDao empDao;
    @Override
    public List<Emp> findAll(){
        return empDao.findAll();
    }
    @Override
    public int addEmp(Emp emp){
        return empDao.addEmp(emp);
    }
    @Override
    public int updateEmpById(Emp emp){
        return empDao.updateEmpById(emp);
    }
    @Override
    public int delete(String ids){
        return empDao.delete(ids);
    }

    @Override
    public List<Emp> findList(Map<String, Object> querymap){
        return empDao.findList(querymap);
    }
    @Override
    public int findTotal(Map<String, Object> querymap){
        return empDao.findTotal(querymap);
    }
}
